package FizzBuzz;

import java.util.Scanner;

/**
 * Created by Msp on 24/04/14.
 */
public class FizzBuzz {
    public static void main(String[] args) {
        int n = 0;
        Scanner in = new Scanner(System.in);
        n = in.nextInt();
        for (int i = 1; i <= n; i++) {
            if(i % 3 == 0){
                System.out.print("Fizz");
                if(i % 5 == 0){
                    System.out.println("Buzz");
                }
                else{
                    System.out.println("");
                }
            }
            else if(i % 5 == 0){
                System.out.println("Buzz");
            }
            else{
                System.out.println(i);
            }
        }
    }
}
